﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using DAL;

namespace BLL
{
    public class ThuocTinhBLL
    {
        ThuocTinhDAL dal;
        public ThuocTinhBLL()
        {
            dal = new ThuocTinhDAL();
        }
        public static DataTable LayNhomThuocTinh(int masp)
        {
            ThuocTinhDAL sp = new ThuocTinhDAL();
            return sp.laynhomthuoctinh(masp);
        }

        public static DataTable LayChiTieThuocTinhSP(int manhomtt,int masp)
        {
            ThuocTinhDAL sp = new ThuocTinhDAL();
            return sp.laythuoctinh(manhomtt,masp);
        }

        //public DataTable getthuoctinhloc(int manhom)
        //{
        //    DataTable dt = null;
        //    try
        //    {
        //        dt = dal.getthuoctinhloc(manhom);

        //    }
        //    catch (Exception ex)
        //    {                
        //        throw new Exception(ex.Message);
        //    }
        //    return dt;
        //}
    }
}
